#! /bin/bash

# 添加分区
add_partition_sql="
alter table jtp_tmp.ods_t_order add if not exists partition (dt ='${data_date}');"

# 执行语句
/opt/module/spark/bin/beeline -u jdbc:hive2://node101:10001 -n bwie -e "${add_partition_sql}"


